FROM openjdk:17
ADD ./target/make-money-1.0.jar make-money.jar
ENV server_port=8080
ENV datasource_username=""
ENV datasource_password=""
ENV redis_password=""
ENV TZ Asia/Shanghai
RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \
    && echo ${TZ} > /etc/timezone
ENTRYPOINT java -Xmx256m -jar /make-money.jar --server.port=$server_port --spring.datasource.username=$datasource_username --spring.datasource.password=$datasource_password --spring.data.redis.password=$redis_password


